﻿package rd.hardcore.selector 
{
	import adobe.utils.CustomActions;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Thibault Perret
	 */
	public class ScrollEvent extends Event 
	{
		static public const BAR_SCROLLING	:	String	=	"bar scrolling";
		static public const LIST_SCROLLING	:	String	=	"list scrolling";
		
		public var ratio	:	Number;
		
		public function ScrollEvent(type:String, ratio:Number, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.ratio = ratio;
		} 
		
		public override function clone():Event 
		{ 
			return new ScrollEvent(type, ratio, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ScrollEvent", "type", "ratio", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}